package com.qingke.java.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
@Entity
@Table(name="user_password")
public class UserPassword {
	@Id
	@Column(name="user_id")
	private int id;
	@Column(name="password")
	private String password;
	@OneToOne(mappedBy="userpassword")
	private User user;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
//	public User getUser() {
//		return user;
//	}
//	public void setUser(User user) {
//		this.user = user;
//	}
	@Override
	public String toString() {
		return "UserPassword [id=" + id + ", password=" + password + "]";
	}
	
	
}
